package be.vdabantwerpen.gow.entities;

import java.util.Date;

import com.google.appengine.repackaged.org.joda.time.DateTime;
import java.io.Serializable;

//voorlopige class voor Posts - eerst JPA bestuderen om constructor enz. aan te passen 
public class Post implements Serializable {
        private static final long serialversionUID = 1L;
	private GOWUser user;
	private DateTime dateTime;
	private String content;

	public Post(GOWUser user,DateTime dateTime, String content) {
		setUser(user);
		setDateTime(dateTime);
		setContent(content);
	}

	public GOWUser getUser() {
		return user;
	}

	private void setUser(GOWUser user) {
		this.user = user;
	}

	public DateTime getDate() {
		return dateTime;
	}

	private void setDateTime(DateTime dateTime) {
		this.dateTime = dateTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public void setContent(String content, DateTime dateTime) {
		this.content = content;
		setDateTime(dateTime);
	}
}
